{#include file="aj/pageheader.html"#}
<script type="text/javascript">
$(function(){
	$('#list-table').tableHover(); 
})
</script>


<h1>
<span class="action-span1"><a href="#">文章列表</a> </span>
<span class="action-span"><a href="{#spUrl c=article a=addpage pid=$pid#}">添加文章</a></span>
</h1>
<div class="form-div">
  <form action="{#spUrl c=article a=index#}" name="searchForm" method="post" >
    <img src="themes/aj/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
	<input type="hidden" value="{#$pid#}" name="pid"/>
    文章标题 <input type="text" name="keyword" id="keyword" />
	{#if $pcat.pid==26#}
		<select name="zt">
			{#foreach item=zt_list from=$zt#}
			<option value="{#$zt_list.id#}">{#$zt_list.catename#}</option>
			{#/foreach#}
		</select>
	{#/if#}
    <input type="submit" value="搜索" class="button" />
  </form>
</div>
<form method="post" action="{#spUrl c=article a=batch#}" name="listForm">
<!-- start ad position list -->
<div class="list-div" id="listDiv">

<table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="table">
  <tr>
    <th><input type="checkbox" onclick='selectAll(this,"checkboxes")'/>编号</th>
    <th>文章标题</th>
    <th>文章分类</th>
    <th>添加日期</th>
    <th>操作</th>
  </tr>
  {#foreach item=article_list from=$rows#}
  <tr>
    <td width="80"><input type="checkbox" name="checkboxs[]" value="{#$article_list.id#}">{#$article_list.id#}</td>
    <td align="left">&nbsp;&nbsp;&nbsp;<strong>{#$article_list.title#}</strong></td>
    <td align="center">{#$article_list.catename#}</td>
    <td align="center">{#$article_list.add_time|date_format:"Y-m-d H:i:s"#}</td>
    <td align="center">
    <span>
      <!--<a title="查看" target="_blank"><img width="16" height="16" border="0" src="themes/aj/images/icon_view.gif"></a>&nbsp;-->
      <a title="编辑" href="{#spUrl c=article a=editpage id=$article_list.id cat_id=$article_list.pid pid=$article_list.pid#}"><img width="16" height="16" border="0" src="themes/aj/images/icon_edit.gif"></a>&nbsp;
	  {#if $article_list.id neq 1110 and $article_list.id neq 1252 and $article_list.id neq 1641 and $article_list.pid neq 80 and $article_list.id neq 1796 and $article_list.id neq 1739 and $article_list.id neq 1642 and $article_list.pid neq 90 and $article_list.id neq 1687 and $article_list.id neq 1643 and $article_list.id neq 1644 and $article_list.id neq 1645 and $article_list.id neq 1621 and $article_list.id neq 1613 and $article_list.id neq 1623 and $article_list.id neq 1259 and $article_list.id neq 1126 and $article_list.id neq 1183 and $article_list.id neq 1129 and $article_list.id neq 1179 and $article_list.id neq 1251 and $article_list.id neq 1253#}
     <a title="移除" href="{#spUrl c=article a=delete id=$article_list.id cat_id=$article_list.pid bid=$article_list.pid#}" onclick="if(confirm('您确认要删除这条记录吗？')){return true}return false;"><img width="16" height="16" border="0" src="themes/aj/images/icon_drop.gif"></a>
	  {#/if#}
	 
	 </span>
     </td>
  </tr>
  {#/foreach#}
  <tr>
  	<td colspan="5" height="30" bgcolor="#80BDCB" id="pager">
 		{#if $pager#}  
            共有{#$pager.total_count#}条信息，共有{#$pager.total_page#}页（每页{#$pager.page_size#}条信息）：  
            <!--在当前页不是第一页的时候，显示前页和上一页-->  
            {#if $pager.current_page != $pager.first_page#}  
                <a href="{#spUrl c=article a=index page=$pager.first_page pid=$pid#}">前页</a> |  
                <a href="{#spUrl c=article a=index page=$pager.prev_page pid=$pid#}">上一页</a> |  
            {#/if#}  
            <!--开始循环页码，同时如果循环到当前页则不显示链接-->  
            {#foreach from=$pager.all_pages item=thepage#}  
                {#if $thepage != $pager.current_page#}  
                     <a href="{#spUrl c=article a=index page=$thepage pid=$pid#}">{#$thepage#}</a>  
                {#else#}  
                     <b>{#$thepage#}</b>  
                {#/if#}  
            {#/foreach#}  
            <!--在当前页不是最后一页的时候，显示下一页和后页-->  
            {#if $pager.current_page != $pager.last_page#} |  
                <a href="{#spUrl c=article a=index page=$pager.next_page pid=$pid#}">下一页</a> |  
                <a href="{#spUrl c=article a=index page=$pager.last_page pid=$pid#}">后页</a>  
            {#/if#}  
        {#/if#}
    </td>
  </tr>
</table>
<div>
  <select name="type">
    <option value="">请选择...</option>
    <option value="button_remove">批量删除</option>
    <option value="button_hide">批量隐藏</option>
    <option value="button_show">批量显示</option>
  </select>
  <input type="hidden" name="pid" value="{#$smarty.get.pid#}"/>	
  <input type="submit" class="button" name="btnSubmit" id="btnSubmit" value="确定">
</div>

</div>
</form>


{#include file="aj/pagefooter.html"#}